//FPS.h
#ifndef _FPS_H_
    #define _FPS_H_

#include <SDL/SDL.h>

//Class FPS is used to control the frame aspects of the game
class FPS {
    public:

//Creates a FPS variable to hold and get FPS variables
        static FPS FPSControl;

//No argument constructor
        FPS();

//Refreshes the FPS when there is movement
        void    OnLoop();

//Returns the current FPS as an int
        int     GetFPS();

//Returns the current SpeedFactor as a float
        float   GetSpeedFactor();

    private:
        int     OldTime;
        int     LastTime;

        float     SpeedFactor;

        int    NumFrames;
        int     Frames;

};

#endif
